﻿using System;
using System.Net;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EventbriteService
{
    class WebSource :IClientSource
    {
        #region IClientSource Members

        public string Read(Uri requestUrl)
        {
            using (WebClient client = new WebClient())
            using (StreamReader reader = new StreamReader(client.OpenRead(requestUrl)))
            {
                var response = reader.ReadToEnd();
                return response;
            }
        }

        #endregion
    }
}
